'use strict';

const conn = require('../../../libs/Conn');

module.exports = async function (params) {
    let querySql = `SELECT * FROM user_group WHERE group_id != 1 AND department in (?) AND delete_sign =1`;
    let rec = await conn(querySql,[params.department_id]);
    return {success: true, data: rec};

};